Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  the  UTC  Time  on  a  Computer  

 Content of List the UTC Time on a Computer.ps1
MD5 Hash: 0B28A828D745446C1BCC5EE92B411A80
$strComputer = "."

$colItems = get-wmiobject -class "Win32_UTCTime" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
write-host "Day: " $objItem.Day
write-host "Day Of Week: " $objItem.DayOfWeek
write-host "Hour: " $objItem.Hour
write-host "Milliseconds: " $objItem.Milliseconds
write-host "Minute: " $objItem.Minute
write-host "Month: " $objItem.Month
write-host "Quarter: " $objItem.Quarter
write-host "Second: " $objItem.Second
write-host "Week In Month: " $objItem.WeekInMonth
write-host "Year: " $objItem.Year
write-host
}


   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a